Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

110
Views
JavaScript .click() no cambia la propiedad "mostrar" de CSS

Estoy tratando de hacer una barra de navegación que al hacer clic haga visible un div que se ha ocultado previamente con display: none . A continuación se muestra lo que tengo hasta ahora:

Barra de navegación:

 $(document).ready(function() { $('#home').click(function() { $('.site-content').html($('#home_wrap')); }); $('#skills').click(function() { $('.site-content').html($('#skills_wrap')); });
 #home_wrap, #skills_wrap { display: none; } .site-content { max-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
 <div class="nav__content"> <ul class="nav__list"> <li class="nav__list-item" id="home" href="#">Home</li> <li class="nav__list-item" id="skills" href="#">Skills</li> </ul> </div>

Como este es un proyecto antiguo, creo que la navegación solía funcionar, pero ahora no.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Intenta usar: $('#home_wrap').show()

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!